<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'editClient_main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/menu_tab.css">
	<link rel="stylesheet" type="text/css" href="css/left_tabmenu.css">
	<link rel="stylesheet" type="text/css" href="css/list_1.css">
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<script type="text/javascript" src="js/showmenu.js"></script>
	<style type="text/css">
		.report {border-collapse:collapse;}
		.report td{height:20px;border:2px solid #DCDCDC;}
		.report th{border:2px solid #DCDCDC;}
	</style>
</head>
  
<body>
<table width="100%" height="100%">
<tr><td>
<table width="100%">
<tr><td><jsp:include page="../top.jsp" flush="true"></jsp:include></td></tr>
</table>
</td></tr>
<tr><td height="4"></td></tr>
<tr><td style="padding-left:5px;height:20px;text-align:left;">
<a href="#" style="text-decoration: none;">首页</a>&gt;&gt;财务分析&gt;&gt;客户分析&gt;&gt;财务指标表
</td>
</tr>
<tr><td height="4"></td></tr>
<tr><td>
<table width="99%" style="border:#BCD2EE solid 1px;margin:auto;">
<tr><td style="height:36px;text-align:right;border:#BCD2EE 1px solid;padding-left:16px;padding-right:20px;">
<table width="100%">
<tr>
<td width="85%" style="text-align: left;">
<img src="images/arrow.gif" />
当前客户--客户号：${CurrentCust.custNo}
&nbsp;&nbsp;&nbsp;客户名称：${CurrentCust.custName}
&nbsp;&nbsp;&nbsp;客户类型：${CurrentCust.custType}</td>
<td width="15%" style="text-align: right;"><input type="button" class="button" value="重新选择" onClick="window.location.href='view/finance/FindCustomer.jsp'"></td>
</tr>
</table>
</td></tr>
<tr><td style="border:1px solid #BCD2EE;">
<table width="100%">
<tr>
<td width="16%" height="480" style="vertical-align:top;border-right:2px #65aaef solid;">
<div id="nav">  
 <div class="title" id="menu1"><a href="finance/checkRecentGeneralReport.do">→ 财务简表</a></div>
 <div class="title1" id="menu2"><a href="finance/checkRecentFinancialIndex.do">→ 财务指标表</a></div>
 <div class="title" id="menu3" onclick="showmenu('3')">→ 趋势分析</div>
 	<div id="list3" class="content" style="display:none">
    	<ul>
			<li><a href="finance/checkPreGeneralReport.do" title="">- 财务简表趋势分析</a></li>
			<li><a href="finance/checkPreFinancialIndex.do" title="">- 财务指标表趋势分析</a></li>
    	</ul>
  	</div>   
</div>
</td>
<td width="84%" style="vertical-align: top" id="right_frame">
<table width="100%"  border="0" cellspacing="1" cellpadding="2"  id="balancesheet">
<tr><td height="4"></td></tr>
<tr><td height="30" style="padding:0 36px;">
<table width="100%">
<tr><td style="text-align: left;">
<img src="images/arrow.gif" />&nbsp;当前报表--会计月份：${report.id.accountMonth}&nbsp;&nbsp;报表类型：${DataDictionary['ReportKind'][report.reportKind].itemName}&nbsp;&nbsp;报表币种：${DataDictionary['Currency'][report.reportCurrency].itemName}
</td>
<td style="text-align: right;">
<%--<input type="button" class="button" value="趋势分析" onClick="window.location.href='finance/checkPreFinancialIndex.do'">
--%></td></tr>
</table>
</td></tr>
<tr>
<td valign="top" style="padding:20px 40px;">
<table width="100%" style="margin:auto" border="0" cellpadding="2" cellspacing="2" class="report">

	<tr id="list_title">
	<th >类型</th>
	<th >项目</th>
	<th>比率<th/>
	</tr>

<c:forEach var="entry" items="${recentFinancialIndex}">
	<tr>
	<th rowspan="${(fn:length(entry.value))+1}" width="20%">${entry.key}</th>
	<td width="40%">&nbsp;</td>
	<td width="40%">&nbsp;</td>
	</tr>
	<c:forEach var="item" items="${entry.value}">
		<c:choose>
		<c:when test="${null == item.itemValueString}">
			<tr>
				<td id="text" style="text-align: left;">${item.displayName}</td>
				<td>-</td>
			</tr>
		</c:when>		
		<c:when test="${item.displayFlag == '1'}">
		<tr >
		<td id="text" style="text-align: left;">${item.displayName}</td>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:when test="${item.displayFlag == '3'}">
		<tr >
		<td id="text" style="text-align: left;">${item.displayName}</td>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:when test="${item.displayFlag == '5'}">
		<tr >
		<td id="text" style="text-align: left;">${item.displayName}</td>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:when test="${item.displayFlag == '7'}">
		<tr >
		<td id="text" style="text-align: left;">${item.displayName}</td>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:when>
		<c:otherwise>
		<tr bgcolor="#FFFFFF">
		<td id="text" style="text-align: left;">${item.displayName}</td>
		<td><c:out value="${item.itemValueString}"></c:out></td>
		</tr>
		</c:otherwise>
		</c:choose>
	</c:forEach>
</c:forEach>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td style="vertical-align:bottom;">
<table width="100%">
<tr><td><jsp:include page="../bottom.jsp"></jsp:include></td></tr>
</table>
</td></tr>
</table>
  </body>
</html>
